package com.chushouya.manager.dto.api.setting;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 设置项DTO
 * 
 * @author chushouya
 */
@ApiModel("设置项信息")
@Data
public class SettingItemDTO {

    @ApiModelProperty("设置项ID")
    private Long id;

    @ApiModelProperty("设置项名称")
    private String name;

    @ApiModelProperty("设置group")
    private String group;

    @ApiModelProperty("设置项类型：1-输入框 2-链接")
    private Integer type;

    @ApiModelProperty("设置项值")
    private String value;

    @ApiModelProperty("链接地址（当type=2时使用）")
    private String link;

    public SettingItemDTO() {
    }

    public SettingItemDTO(Long id, String name, String group, Integer type, String value) {
        this.id = id;
        this.name = name;
        this.group = group;
        this.type = type;
        this.value = value;
    }

    public SettingItemDTO(Long id, String name,String group, Integer type, String value, String link) {
        this.id = id;
        this.name = name;
        this.group = group;
        this.type = type;
        this.value = value;
        this.link = link;
    }
}
